Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add statistics attribute to slicefinder #40

Merged
merged 2 commits into from
Apr 6, 2023

Conversation

adedaran
Copy link
Collaborator

@adedaran adedaran commented Apr 5, 2023

This PR adds the statistics of the slices found sorted by slice's scores as an attribute of a Slicefinder (top_slices_statistics_).

For each slice, the following statistics are stored:

  • "slice_score": the score of the slice (defined in _score method)
  • "sum_slice_error": the sum of all the errors in the slice
  • "max_slice_error": the maximum of all errors in the slice
  • "slice_size": the number of elements in the slice
  • "slice_average_error": the average error in the slice (sum_slice_error / slice_size)

Resolves #39

@adedaran adedaran marked this pull request as ready for review April 5, 2023 15:31
@adedaran adedaran requested a review from ythevalil-dd April 5, 2023 15:31
@adedaran adedaran merged commit 428130a into main Apr 6, 2023
@adedaran adedaran deleted the feature/add_statistics_attribute branch April 6, 2023 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add statistics attribute to slicefinder
3 participants